package com.project.web.order.service.impl.app;

import com.project.web.course.service.impl.common.BaseServiceImpl;
import com.project.web.order.mapper.app.CartMapper;
import com.project.web.order.model.app.Cart;
import com.project.web.order.service.app.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName CartServiceImpl
 * @Description
 * @Author 王天豪
 * @Date 2020/10/22 5:26 PM
 * @Version 1.0
 */
@Service("cartServiceImpl")
public class CartServiceImpl extends BaseServiceImpl<Cart,Long> implements CartService {

    @Autowired
    private CartMapper cartMapper;


    @Override
    public List<Cart> selectCartListByUserId(String userId) {
        return cartMapper.selectCartListByUserId(userId);
    }
}
